import request from '@/utils/request'

export function getPage(query) {
  return request({
    url: '/dept/getPage.do',
    method: 'get',
    params: query
  })
}

export function getList(query) {
  return request({
    url: '/dept/getList.do',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/dept/add.do',
    method: 'post',
    params: query
  })
}

export function edit(query) {
  return request({
    url: '/dept/edit.do',
    method: 'post',
    params: query
  })
}

export function del(query) {
  return request({
    url: '/dept/del.do',
    method: 'delete',
    params: query
  })
}

export function getInfo(query) {
  return request({
    url: '/dept/getDepartment.do',
    method: 'get',
    params: query
  })
}

